easystats.
linear_model_interaction <-
lm(
curfew_yes_no ~ age_cat * education_cat,
data = gp_covid
)
model_parameters(linear_model_interaction) %>%
plot()
ggplot2. You could choose from one of ggplot2’s built-in themes here: https://ggplot2.tidyverse.org/reference/ggtheme.html. In another step, you could adjust the scale’s colour, e.g., with scale_colour_grey(). Be creative.
model_parameters(linear_model_interaction) %>%
plot() +
scale_colour_grey(start = 0, end = .5, guide = "none") +
theme_minimal()
## Scale for 'colour' is already present. Adding another scale for 'colour', which will replace the existing scale.
plot_model() function from sjPlot.
library(sjPlot)
plot_model(
linear_model_interaction,
type = "int"
)